/**
 * 
 */
package com.atung.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.atung.request.RequestRefund;
import com.atung.service.WXPayService;
import com.yuyi.full.Result;

import io.swagger.annotations.Api;

/**
 * 
 * @author lc <br>
 * 2020年11月23日 下午3:22:32
 */
@RestController
@RequestMapping("/wx")
@Api(tags="微信退款")
public class WXRefundController {
    
    @Autowired
    private WXPayService wxPayService;

    @PostMapping("refund")
    public Result<?> refund(@RequestBody RequestRefund red) throws Exception{
        return wxPayService.refund(red);
    }
    
}
